﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Pantry.Commons;

namespace Pantry.UnitTest
{
    [TestFixture]
    class TestValidates
    {
        [Test]
        public void TestIsNaturalNumber()
        {
            var actual = Validates.IsNaturalNumber("");
            Assert.AreEqual(false, actual);
        }

        [Test]
        public void TestIsNaturalNumberResultTrue()
        {
            var actual = Validates.IsNaturalNumber("1");
            Assert.AreEqual(true, actual);
        }

        [Test]
        public void TestIsNaturalNumberResultFalse()
        {
            var actual = Validates.IsNaturalNumber("g1");
            Assert.AreEqual(false, actual);
        }
    }
}
